// SPDX-License-Identifier: GPL-3.0-or-later

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

import Fk.Components.GameCommon as Game
import Fk
import "../self" as QsgsSelf

Game.BasicItem {
  id: root
  height: equipAreaBg.height
  width: equipAreaBg.width

  property bool isGold: false

  property alias sealedSlots: equipAreaItem.sealedSlots

  property alias equipArea: equipAreaItem
  property alias areasSealed: equipAreaItem

  Image {
    id: equipAreaBg
    source: Cpp.path + "/packages/lunarltk-qsgs-ui/image/selfArea/dashboard-equip" + (root.isGold ? "-gold" : "") + ".png"
    height: 132
    width: sourceSize.width * height / sourceSize.height
  }

  QsgsSelf.EquipArea {
    id: equipAreaItem
  }
}
